import { Optional } from "./02-Type";

export interface IPoint {
  x: number;
  y: number;
}
export interface IOrientationPoint extends IPoint {
  angle: number;
}
// 矩形
export interface IRectangle extends IPoint {
  width: number;
  height: number;
}
// amcharts 中的定义
export interface IRectangleAM {
  x: number;
  y: number;
  width: number;
  height: number;
}

let point: IPoint = {
  x: 0,
  y: 0,
};
let iPoint: IOrientationPoint = {
  x: 22,
  angle: 22,
  y: 22,
};
let iRect: IRectangle = {
  x: 2,
  y: 2,
  width: 2,
  height: 2,
};
let iRect2: IRectangleAM = {
  x: 2,
  y: 2,
  width: 2,
  height: 2,
};

export interface IRange {
  start: Optional<number>;
  end: Optional<number>;
  priority?: "start" | "end";
}
